package lanqiao;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class 冒泡 {
    public static void main(String[] args) {
        int n = 0;
        int sum=0;
        while (sum<100){
            sum=(n-1)*n/2;
            n++;
        }
        System.out.println(sum);
        System.out.println(n);
        int k =sum-100;
        char[] str=new char[n-1];
        for (int i = n-2; i >=0 ; i--) {
           str[n-2-i] = (char) (i+'a');
        }
       char m= str[k];
        str[k]=str[0];
        str[0]=m;
       String string = Arrays.toString(str);
        System.out.println(string);
    }

}
